﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GS_OM.SMDB
{
    public class ToolsClass
    {
        public static string PushApprovalTrans(string PushApproval)
        {
            switch (PushApproval.Trim())
            {
                case "Yes":
                    return "已审核";
                case "已审核":
                    return "Yes";
                case "No":
                    return "待审核";
                case "待审核":
                    return "No";
                case "Rejected":
                    return "审核未通过";
                case "审核未通过":
                    return "Rejected";
                case "储存":
                    return "Saved";
                case "Saved":
                    return "储存";
                default:
                    return "";
            }
        }

        public static string PushTypesTrans(string PushTypes)
        {
            switch (PushTypes.Trim())
            {
                case "Discount":
                    return "打折商品";
                case "打折商品":
                    return "Discount";
                case "NewProd":
                    return "新品";
                case "新品":
                    return "NewProd";
                case "商品活动":
                    return "Activities";
                case "Activities":
                    return "商品活动";
                default:
                    return "";
                
            }
        }
    }
}